package com.gmail.dengtao.joe.game.server;

import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

import com.gmail.dengtao.joe.game.model.Player;
import com.gmail.dengtao.joe.transport.session.Session;

public class GameCache {

	/** name -> player */
	public static final Map<String, Player> players = new ConcurrentHashMap<String, Player>();
	
	/** player -> session */
	public static final Map<Player, Session> sessions = new ConcurrentHashMap<Player, Session>();
	
	/** session -> player */
	public static final Map<Session, Player> playersCache = new ConcurrentHashMap<Session, Player>();
	
	public static final Map<String, Player> remotePlayers = new ConcurrentHashMap<String, Player>();
}